//
//  UploadFileTool.h
//  HCJ
//
//  Created by 黄山锋 on 2017/12/5.
//  Copyright © 2017年 JuZhenBaoiMac. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UploadFileTool : NSObject


//上传单个文件
+ (void)uploadFileData:(NSData *)data fileName:(NSString *)fileName progress:(QNUpProgressHandler)progress success:(void (^)(NSString *url))success failure:(void (^)())failure;

//上传多个文件
+ (void)uploadFileDatas:(NSArray *)fileDataArray fileNameArr:(NSArray *)fileNameArr progress:(void (^)(CGFloat totalProgress))progress success:(void (^)(NSArray *urlArr))success failure:(void (^)())failure;


//#error mark -- 必须设置获取七牛token服务器地址,然后获取token返回 --(确认设置后,删除此行)
//获取七牛的token
+ (void)getQiniuUploadToken:(void (^)(NSString *))success failure:(void (^)())failure;


@end
